# Contributor: z3bra <willy at mailoo dot org>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=detox
pkgver=1.3.0
pkgrel=1
pkgdesc="Utility for cleaning up filenames"
url="https://github.com/dharple/detox"
arch="all"
license="BSD-3-Clause"
makedepends="autoconf automake coreutils libtool"
subpackages="$pkgname-doc"
options="!check" # no upstream/available test-suite
source="$pkgname-$pkgver.tar.gz::https://github.com/dharple/detox/archive/v$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--datadir=/usr/share
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e30d4a2151e4288036db04e0fe91273acf5a6d353126dce0ba19d4fe8a568078e58441fddfd49b6d5034a880e0eccd58a70024cfd2093ad610c6838303b45978  detox-1.3.0.tar.gz"
